import pandas as pd

df = pd.read_csv('training_merge.csv')
less40 = df[df['seq_time'] < 40]
less40 = less40[less40['other_air_time'] < 100]
more40 = df[df['seq_time'] > 40]

def stat(cols, name):
    for c in cols:
        print(name, c.mean(), c.median(), float(c.mode()))

def doStat(colName):
    cols = [df[colName], less40[colName], more40[colName]]
    stat(cols, colName)

doStat('other_air_time')